const basePath = '@/views/client/task';
const baseName = 'ClientTask';
const modules = import.meta.glob("../views/**/**.vue");

const taskRouter = [
  {
    path: 'task',
    component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/index.vue`],
    children: [
      {
        path: 'all',
        name: `${baseName}All`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/all/index.vue`],
      },
      {
        path: 'todo',
        name: `${baseName}Todo`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/todo/index.vue`],
      },
      {
        path: 'favorite',
        name: `${baseName}Favorite`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/favorite/index.vue`],
      },
      {
        path: 'create',
        name: `${baseName}Create`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/create/index.vue`],
      },
      {
        path: 'execute',
        name: `${baseName}Execute`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/execute/index.vue`],
      },
      {
        path: 'send',
        name: `${baseName}Send`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/send/index.vue`],
      },
      {
        path: 'examine',
        name: `${baseName}Examine`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/examine/index.vue`],
      },
      {
        path: 'recycle',
        name: `${baseName}Recycle`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/recycle/index.vue`],
      },
      {
        path: 'draft',
        name: `${baseName}Rraft`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/draft/index.vue`],
      },
      {
        path: 'add',
        name: `${baseName}Add`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/add/index.vue`],
      },
      {
        path: 'detail',
        name: `${baseName}Detail`,
        component: () => modules[/* webpackChunkName: "clientTask" */ `${basePath}/detail/index.vue`],
      },
    ]
  },
];

export default taskRouter;